package vip.sweet.biz.modular.expert.service.impl;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vip.sweet.biz.modular.expert.entity.BizExperts;
import vip.sweet.biz.modular.expert.mapper.BizExpertsMapper;
import vip.sweet.biz.modular.expert.params.BizExpertsAddParams;
import vip.sweet.biz.modular.expert.service.BizExpertsService;

/**
 * @author ASUS
 * @Date 2025/10/5 11:08
 * @Descripition
 */
@Service
public class BizExpertsServiceImpl extends ServiceImpl<BizExpertsMapper, BizExperts> implements BizExpertsService {
    @Override
    public boolean add(BizExpertsAddParams bizExpertsAddParams) {
        if (ObjectUtil.isNotEmpty(bizExpertsAddParams))
            return save(BeanUtil.toBean(bizExpertsAddParams, BizExperts.class));
        return false;
    }
}
